package com.cyy.springbootinit.model.dto.dorimitoryexpensebill;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cyy.springbootinit.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 查询宿舍水电支出请求
 *
 * @author 程序员cyy</a>
 * @from cyy</a>
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DormitoryExpenseBillQueryRequest extends PageRequest implements Serializable {

    /**
     * 自增整数，主键，支出单ID
     */
    @TableId(type = IdType.AUTO)
    private Integer billId;

    /**
     * 整数，宿舍ID（通过关联表实现关联，此处暂不体现外键）
     */
    private Integer dormitoryId;

    /**
     * 日期，账单日期
     */
    private Date billDate;

    /**
     * 浮点数，总支出金额
     */
    private Double totalExpense;

    /**
     * 浮点数，水费支出金额
     */
    private Double waterExpense;

    /**
     * 浮点数，电费支出金额
     */
    private Double electricityExpense;

    /**
     * 搜索词
     */
    private String searchText;



    private static final long serialVersionUID = 1L;
}